{extend name="main/index" /}
{block name="main"}

<div class="content-page">
    <div class="content">
        <h1>{$title}</h1>
        <form action="{:url('admin/role/change')}" method="post">
            <input type="hidden" name="r_id" value="{$id}">
            {volist name="permission" key="k" id="v" }


            <input type="checkbox" name="permission[]" value="{$v['id']}"
                   {volist name="result" key="k1" id="v1" }

                   {if condition = "in_array($v1['p_id'],$v)"}
                    checked='checked'
                   {/if}
            {/volist}


            >{$v['permission']}






            {/volist}

            <br>
            <input type="submit">
        </form>
    </div>
</div>

{/block}</html>